﻿using System;
using System.Collections.Generic;
using System.Text;
using System.Management;

namespace System.Peppers.Wmi
{
    /// <summary>
    /// Base Wmi class that many Win32_* objects derive from
    /// </summary>
    public class CimSetting : WmiWrapper
    {
        #region Static
        private static class WmiProperties
        {
            public const string
                Description = "Description",
                Caption = "Caption";
        }
        #endregion

        internal CimSetting(ManagementObject wmiObject)
            : base(wmiObject)
        { }

        /// <summary>
        /// Description of the CIM_Setting object.
        /// </summary>
        public string Description
        {
            get { return Convert.ToString(this[WmiProperties.Description]); }
        }

        /// <summary>
        /// Description of the CIM_Setting object, a one-line string.
        /// </summary>
        public string Caption
        {
            get { return Convert.ToString(this[WmiProperties.Caption]); }
        }
    }
}
